/*
 * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.iec.edp.caf.msu.common;

import io.iec.edp.caf.msu.api.MsuService;
import io.iec.edp.caf.msu.api.entity.GspAppServerInstance;
import io.iec.edp.caf.msu.api.entity.GspSuInstance;
import io.iec.edp.caf.sumgr.api.SUService;

import java.util.List;

@Deprecated
public class SuService implements SUService {

    private MsuService msuService;

    public SuService(MsuService msuService) {
        this.msuService = msuService;
    }

    @Override
    public String getIpAddress(String appServerName) {
        return this.msuService.getIpAddress(appServerName);
    }

    @Override
    public String getPort(String appServerName) {
        return this.msuService.getPort(appServerName);
    }

    @Override
    public boolean isLocalInvoke(String serviceUnitName) {
        return this.msuService.isLocalInvoke(serviceUnitName);
    }

    @Override
    public String getRemoteBaseUrl(String appServerName) {
        return this.msuService.getRemoteBaseUrl(appServerName);
    }

    @Override
    public List<GspAppServerInstance> getGspAppServerInfo(String appServerName) {
        return this.msuService.getGspAppServerInfo(appServerName);
    }

    @Override
    public List<GspAppServerInstance> getGspAppServerInfoBySu(String suName) {
        return this.msuService.getGspAppServerInfoBySu(suName);
    }

    @Override
    public GspSuInstance getGspSuInfo(String suName) {
        return this.msuService.getGspSuInfo(suName);
    }

    @Override
    public List<GspSuInstance> getGspSuByAppServer(String appServerName) {
        return this.msuService.getGspSuByAppServer(appServerName);
    }
}
